/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const permissionRouter =  {
  path: '/permission',
  component: Layout,
  redirect: '/permission/page',
  alwaysShow: true, // 将始终显示根菜单
  name: 'Permission',
  meta: {
    title: '权限管理',
    icon: 'lock',
    roles: ['Auth_Page'] // you can set roles in root nav
  },
  children: [
    {
      path: 'user',
      component: () => import('@/views/permission/user'),
      name: 'UserPermission',
      meta: {
        title: '用户列表',
        roles: ['Auth_Page.User']
      }
    },{
      path: 'role',
      component: () => import('@/views/permission/role'),
      name: 'RolePermission',
      meta: {
        title: '角色列表',
        roles: ['Auth_Page.Role']
      }
    },{
      path:'tenant',
      component:()=>import('@/views/permission/tenant'),
      name:'TenantPermission',
      meta:{
        title:'租户列表',
        roles:['Auth_Page.Tenant']
      }
    },{
      path: 'organization',
      component: () => import('@/views/permission/organization'),
      name: 'OrganizationPermission',
      meta: {
        title: '机构列表',
        roles: ['Auth_Page.OrganizationUnit']
      }
    }, {
      path: 'permission',
      component: () => import('@/views/permission/index'),
      name: 'Permission',
      meta: {
        title: '权限列表',
        roles: ['Auth_Page']
      }
    }
  ]
}
export default permissionRouter
